home *** CD-ROM | disk | FTP | other *** search
/ MacWorld: Complete Mac Interactive / Macworld Complete Mac Interactive CD)(1994).iso / Software / More Shareware⁄Freeware / Software Perspectives / Externals / RenameRes XFCN 1.1.sit / RenameRes 1.1 XFCN / RenameRes 1.1 / cards.xml < prev    next >
Text File  |  1993-03-14  |  10KB  |  261 lines

  1. card_4736.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>4736</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_4923.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2671</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3087.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>button</type>
  16.         <visible> <true /> </visible>
  17.         <reserved5> 0 </reserved5>
  18.         <reserved4> 0 </reserved4>
  19.         <reserved3> 0 </reserved3>
  20.         <reserved2> 0 </reserved2>
  21.         <reserved1> 0 </reserved1>
  22.         <enabled> <true /> </enabled>
  23.         <rect>
  24.             <left>393</left>
  25.             <top>305</top>
  26.             <right>495</right>
  27.             <bottom>330</bottom>
  28.         </rect>
  29.         <style>roundrect</style>
  30.         <showName> <true /> </showName>
  31.         <highlight> <false /> </highlight>
  32.         <autoHighlight> <true /> </autoHighlight>
  33.         <sharedHighlight> <true /> </sharedHighlight>
  34.         <family>0</family>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>center</textAlign>
  38.         <font>Chicago</font>
  39.         <textSize>12</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <name>OK</name>
  42.         <script>on mouseUpvisual effect dissolvego cd 1end mouseUp</script>
  43.     </part>
  44.     <name>Fine print</name>
  45.     <script></script>
  46. </card>
  47.  
  48.  
  49. card_4145.xml
  50. <?xml version="1.0" encoding="utf-8" ?>
  51. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  52. <card>
  53.     <id>4145</id>
  54.     <filler1>0</filler1>
  55.     <bitmap>BMAP_4599.pbm</bitmap>
  56.     <cantDelete> <false /> </cantDelete>
  57.     <showPict> <true /> </showPict>
  58.     <dontSearch> <false /> </dontSearch>
  59.     <owner>2671</owner>
  60.     <link rel="stylesheet" type="text/css" href="stylesheet_3087.css" />
  61.     <name>Logo</name>
  62.     <script></script>
  63. </card>
  64.  
  65.  
  66. card_5422.xml
  67. <?xml version="1.0" encoding="utf-8" ?>
  68. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  69. <card>
  70.     <id>5422</id>
  71.     <filler1>0</filler1>
  72.     <bitmap>BMAP_5766.pbm</bitmap>
  73.     <cantDelete> <false /> </cantDelete>
  74.     <showPict> <true /> </showPict>
  75.     <dontSearch> <false /> </dontSearch>
  76.     <owner>2671</owner>
  77.     <link rel="stylesheet" type="text/css" href="stylesheet_3087.css" />
  78.     <part>
  79.         <id>1</id>
  80.         <type>button</type>
  81.         <visible> <true /> </visible>
  82.         <reserved5> 0 </reserved5>
  83.         <reserved4> 0 </reserved4>
  84.         <reserved3> 0 </reserved3>
  85.         <reserved2> 0 </reserved2>
  86.         <reserved1> 0 </reserved1>
  87.         <enabled> <true /> </enabled>
  88.         <rect>
  89.             <left>199</left>
  90.             <top>303</top>
  91.             <right>313</right>
  92.             <bottom>325</bottom>
  93.         </rect>
  94.         <style>roundrect</style>
  95.         <showName> <true /> </showName>
  96.         <highlight> <false /> </highlight>
  97.         <autoHighlight> <true /> </autoHighlight>
  98.         <sharedHighlight> <true /> </sharedHighlight>
  99.         <family>0</family>
  100.         <titleWidth>0</titleWidth>
  101.         <icon>0</icon>
  102.         <textAlign>center</textAlign>
  103.         <font>Chicago</font>
  104.         <textSize>12</textSize>
  105.         <textStyle>plain</textStyle>
  106.         <name>OK</name>
  107.         <script>on mouseUpvisual effect dissolvego cd 1end mouseUp</script>
  108.     </part>
  109.     <name>Credits</name>
  110.     <script></script>
  111. </card>
  112.  
  113.  
  114. card_3729.xml
  115. <?xml version="1.0" encoding="utf-8" ?>
  116. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  117. <card>
  118.     <id>3729</id>
  119.     <filler1>0</filler1>
  120.     <bitmap>BMAP_4032.pbm</bitmap>
  121.     <cantDelete> <false /> </cantDelete>
  122.     <showPict> <true /> </showPict>
  123.     <dontSearch> <false /> </dontSearch>
  124.     <owner>2671</owner>
  125.     <link rel="stylesheet" type="text/css" href="stylesheet_3087.css" />
  126.     <part>
  127.         <id>1</id>
  128.         <type>field</type>
  129.         <visible> <true /> </visible>
  130.         <dontWrap> <false /> </dontWrap>
  131.         <dontSearch> <false /> </dontSearch>
  132.         <sharedText> <false /> </sharedText>
  133.         <fixedLineHeight> <false /> </fixedLineHeight>
  134.         <autoTab> <false /> </autoTab>
  135.         <lockText> <true /> </lockText>
  136.         <rect>
  137.             <left>3</left>
  138.             <top>125</top>
  139.             <right>509</right>
  140.             <bottom>286</bottom>
  141.         </rect>
  142.         <style>scrolling</style>
  143.         <autoSelect> <false /> </autoSelect>
  144.         <showLines> <false /> </showLines>
  145.         <wideMargins> <false /> </wideMargins>
  146.         <multipleLines> <false /> </multipleLines>
  147.         <reservedFamily> 0 </reservedFamily>
  148.         <titleWidth>0</titleWidth>
  149.         <icon>0</icon>
  150.         <textAlign>left</textAlign>
  151.         <font>Geneva</font>
  152.         <textSize>9</textSize>
  153.         <textStyle>plain</textStyle>
  154.         <textHeight>12</textHeight>
  155.         <name></name>
  156.         <script></script>
  157.     </part>
  158.     <part>
  159.         <id>3</id>
  160.         <type>button</type>
  161.         <visible> <true /> </visible>
  162.         <reserved5> 0 </reserved5>
  163.         <reserved4> 0 </reserved4>
  164.         <reserved3> 0 </reserved3>
  165.         <reserved2> 0 </reserved2>
  166.         <reserved1> 0 </reserved1>
  167.         <enabled> <true /> </enabled>
  168.         <rect>
  169.             <left>97</left>
  170.             <top>306</top>
  171.             <right>237</right>
  172.             <bottom>328</bottom>
  173.         </rect>
  174.         <style>roundrect</style>
  175.         <showName> <true /> </showName>
  176.         <highlight> <false /> </highlight>
  177.         <autoHighlight> <true /> </autoHighlight>
  178.         <sharedHighlight> <true /> </sharedHighlight>
  179.         <family>0</family>
  180.         <titleWidth>0</titleWidth>
  181.         <icon>0</icon>
  182.         <textAlign>center</textAlign>
  183.         <font>Chicago</font>
  184.         <textSize>12</textSize>
  185.         <textStyle>plain</textStyle>
  186.         <name>Usage Guidelines</name>
  187.         <script>on mouseUpvisual effect dissolvego cd "Fine print"end mouseUp</script>
  188.     </part>
  189.     <part>
  190.         <id>4</id>
  191.         <type>button</type>
  192.         <visible> <true /> </visible>
  193.         <reserved5> 0 </reserved5>
  194.         <reserved4> 0 </reserved4>
  195.         <reserved3> 0 </reserved3>
  196.         <reserved2> 0 </reserved2>
  197.         <reserved1> 0 </reserved1>
  198.         <enabled> <true /> </enabled>
  199.         <rect>
  200.             <left>341</left>
  201.             <top>306</top>
  202.             <right>505</right>
  203.             <bottom>328</bottom>
  204.         </rect>
  205.         <style>roundrect</style>
  206.         <showName> <true /> </showName>
  207.         <highlight> <false /> </highlight>
  208.         <autoHighlight> <true /> </autoHighlight>
  209.         <sharedHighlight> <true /> </sharedHighlight>
  210.         <family>0</family>
  211.         <titleWidth>0</titleWidth>
  212.         <icon>0</icon>
  213.         <textAlign>center</textAlign>
  214.         <font>Chicago</font>
  215.         <textSize>12</textSize>
  216.         <textStyle>plain</textStyle>
  217.         <name>RenameRes Example</name>
  218.         <script>-- RenameRes Example Script-- Version 1.1-- By Kevin Harris-- ¬©1992-93 Software Perspectives.  All Rights Reserved.--on mouseUpput 0 into numberItput 128 into idNumanswer "First select the sample file that came with this stack..."answer file "Select the file:" of type "rsrc"put it into fileNameif fileName is empty then exit mouseUpask "Now type a new name for the resources:"put it into theNameanswer "Now RenameRes will rename all the resources..."repeat with i=idNum to 138add 1 to numberItset cursor to busyget RenameRes(fileName,i,"PICT",,theName&numberIt)put it into msgend repeatput "The resources have been renamed " & theName & "1 to " & theName & numberIt & "." into tanswer tanswer "Now lets take a look at the script in the RenameRes Example button to see how to do it!"edit script of cd btn "RenameRes Example" of this cdend mouseUp</script>
  219.     </part>
  220.     <part>
  221.         <id>5</id>
  222.         <type>button</type>
  223.         <visible> <true /> </visible>
  224.         <reserved5> 0 </reserved5>
  225.         <reserved4> 0 </reserved4>
  226.         <reserved3> 0 </reserved3>
  227.         <reserved2> 0 </reserved2>
  228.         <reserved1> 0 </reserved1>
  229.         <enabled> <true /> </enabled>
  230.         <rect>
  231.             <left>9</left>
  232.             <top>306</top>
  233.             <right>89</right>
  234.             <bottom>328</bottom>
  235.         </rect>
  236.         <style>roundrect</style>
  237.         <showName> <true /> </showName>
  238.         <highlight> <false /> </highlight>
  239.         <autoHighlight> <true /> </autoHighlight>
  240.         <sharedHighlight> <true /> </sharedHighlight>
  241.         <family>0</family>
  242.         <titleWidth>0</titleWidth>
  243.         <icon>0</icon>
  244.         <textAlign>center</textAlign>
  245.         <font>Chicago</font>
  246.         <textSize>12</textSize>
  247.         <textStyle>plain</textStyle>
  248.         <name>About</name>
  249.         <script>on mouseUpvisual effect dissolvego cd "Credits"end mouseUp</script>
  250.     </part>
  251.     <content>
  252.         <layer>card</layer>
  253.         <id>1</id>
  254.         <text><span class="style1">enameRes XFCN 1.1</span><span class="style2">RenameRes is a function to allow you to rename any type of resource in any file from within Hypercard. </span><span class="style4">Syntax: </span><span class="style2">RenameRes(filename, resId, resType, resName, newName)</span><span class="style3">Syntax Breakdown:</span><span class="style2">filename - This is the full path to the file that contains the resource you want to                change.   Example: "My Hard Disk:Pictures:Bozo"resId - This is the id number of the resource to be changed.resType - This is the type of resource it is, this is always a four character name.                Example: PICT, MENU, WIND, DLOG, etc.resName - This is the original name of the resource if it has one.  This parameter                 is optional.newName - This is the new name you want to give it.</span><span class="style3">Sample Script:</span><span class="style2">on mouseUp  get RenameRes("My Hard Disk:MyResources","2000","PICT",,"NewName")  put it into msgend mouseUpThis script will rename the PICT resource, id 2000, in the file MyResources on the volume My Hard Disk to NewName.  It will then return any errors to the message box, if there are any.</span><span class="style3">Error Codes:</span><span class="style2">0 = No Error.-192 = Resource Not Found.-193 = Resource file not found.</span><span class="style3">Version History:</span><span class="style2">7/15/92 - Version 1.02/26/93 - Version 1.1 - Bug fix update</span><span class="style3">WARNING</span><span class="style4">Renaming resources located in System files or files used by the System is not recommended! Software Perspectives will not take responsibility for any damages caused from the misuse of this software.  This covers the author of the program as well.</span></text>
  255.     </content>
  256.     <name></name>
  257.     <script></script>
  258. </card>
  259.  
  260.  
  261.